package skeleton;


public class SimulationController {

    public static void stepSimulation () throws Exception {
        Logger.Enter("SimulationController_stepSimulation");

        NetworkController NC = NetworkController.getInstance();
       //generatorok leptetese
        NC.stepGenerators();

        //frissites inditasa
        NC.Update();

        Logger.Leave("SimulationController_stepSimulation");
    }

    public static void resetSimulation () throws Exception {
        Logger.Enter("SimulationController_resetSimulation");

        NetworkController NC = NetworkController.getInstance();

        //reset
        NC.resetNetwork();

        Logger.Leave("SimulationController_resetSimulation");
    }

    public static Switch getSwitch(int id){
        return (Switch)NetworkLoaderController.getDigitalElement(id);
    }

}

